package com.jt.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jt.dto.UserPageDto;
import com.jt.pojo.Menu;
import com.jt.pojo.Role;
import com.jt.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserMapper extends BaseMapper<User> {

    List<User> UserPageList(@Param("userPageDto") UserPageDto userPageDto);

    int UserTotal(@Param("userPageDto") UserPageDto userPageDto);

    List<Role> selectRoleListById(@Param("userId") String userId);


    List<Menu> selectMenuList(@Param("roleId") String roleId);

    List<String> getUserRoleList(@Param("userId") String userId);

    User selectUserAndRole();

}
